///<reference path="child2/child2.component.ts"/>
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { ChildComponent } from './child/child.component';
import { RouterModule, Routes} from "@angular/router";
import { Child2Component } from "./child2/child2.component";
import { FormsModule } from "@angular/forms";
import { HttpModule } from "@angular/http";

var routerConfig: Routes =  [
  {path: '', component: ChildComponent},
  {path: 'child2', component: Child2Component}
]

@NgModule({
  declarations: [
    AppComponent,
    ChildComponent,
    Child2Component
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    RouterModule.forRoot(routerConfig)
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
